# 824 简单：山羊拉丁文

def toGoatLatin(sentence: str) -> str:
    i = 1
    ret = []
    for word in sentence.split():
        if word[0] not in ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']:
            word = word[1:] + word[0]
        word += 'ma' + ('a' * i)
        ret.append(word)
        i += 1
    print(ret)
    return ' '.join(ret)


print(toGoatLatin('The quick brown fox jumped over the lazy dog'))
